﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Extractor.Manager;
using Infrastructure;

namespace RarExtractor
{
    public partial class PreferencesDlg : Form
    {
        public PreferencesDlg ()
        {
            InitializeComponent();

        }

        private void PreferencesDlg_Load ( object sender, EventArgs e )
        {
            //_radioButtonMoveContent.Checked = SettingsManager<ExtractorSettings>.Instane.Settings.MoveContent;
            //_radioButtonCopyContent.Checked = SettingsManager<ExtractorSettings>.Instane.Settings.CopyContent;
            //_checkBoxAutoExtract.Checked = SettingsManager<ExtractorSettings>.Instane.Settings.AutoExtract;

            folders1.SelectedFolders = SettingsManager<ExtractorSettings>.Instane.Settings.MonitoredFolder.ToArray();            
        }

        private void ButtonOkClick ( object sender, EventArgs e )
        {          
            SettingsManager<ExtractorSettings>.Instane.Settings.MonitoredFolder = new List<string>( folders1.SelectedFolders );
            //SettingsManager<ExtractorSettings>.Instane.Settings.AutoExtract = _checkBoxAutoExtract.Checked;
            //SettingsManager<ExtractorSettings>.Instane.Settings.MoveContent = _radioButtonMoveContent.Checked;
            //SettingsManager<ExtractorSettings>.Instane.Settings.CopyContent = _radioButtonCopyContent.Checked;
        }
    }
}
